package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 采购需求对象 buy_need
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class BuyNeed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购需求id */
    private Long needId;

    /** 采购需求单号 */
    private String needCode;

    /** 生产计划ID */
    private Long progId;

    /** 物料计划编号 */
    private String mtrPlanCode;

    /** 物料编号 */
    private String mtrCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String mtrName;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long needQuantity;

    /** 成本 */
    @Excel(name = "成本")
    private BigDecimal cost;

    /** 状态 0 - 未采购 1 - 已采购*/
    @Excel(name = "状态")
    private Long status;

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public void setNeedId(Long needId)
    {
        this.needId = needId;
    }

    public String getMtrCode() {
        return mtrCode;
    }

    public void setMtrCode(String mtrCode) {
        this.mtrCode = mtrCode;
    }

    public Long getNeedId()
    {
        return needId;
    }
    public void setNeedCode(String needCode)
    {
        this.needCode = needCode;
    }

    public String getNeedCode()
    {
        return needCode;
    }
    public void setProgId(Long progId)
    {
        this.progId = progId;
    }

    public Long getProgId()
    {
        return progId;
    }

    public String getMtrPlanCode() {
        return mtrPlanCode;
    }

    public void setMtrPlanCode(String mtrPlanCode) {
        this.mtrPlanCode = mtrPlanCode;
    }

    public void setMtrName(String mtrName)
    {
        this.mtrName = mtrName;
    }

    public String getMtrName()
    {
        return mtrName;
    }
    public void setNeedQuantity(Long needQuantity)
    {
        this.needQuantity = needQuantity;
    }

    public Long getNeedQuantity()
    {
        return needQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("needId", getNeedId())
            .append("needCode", getNeedCode())
            .append("progId", getProgId())
            .append("mtrPlanCode", getMtrPlanCode())
            .append("mtrName", getMtrName())
            .append("needQuantity", getNeedQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
